export interface CreateOrUpdateProductsRequestData {
  id?: string | undefined
  name: string
  remark: string
  name_en?: string
  remark_en?: string
}

export interface CreateOrUpdateProductsChildrenRequestData {
  id?: string | undefined
  category_id: string
  build_type_id: string
  name: string
  desc: string
  tag: any
  img_list: any
  introduction: string
  usage: string
  params: any
  name_en?: string
  desc_en?: string
  tag_en?: string
  introduction_en?: string
  usage_en?: any
  params_en?: any
}

export interface GetProductsRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /** 查询参数：产品类型 */
  type?: string
  /** 查询参数：产品系列名称 */
  name?: string
}

export interface GetProductsChildrenRequestData {
  /** 当前页码 */
  page: number
  /** 查询条数 */
  size: number
  /** 查询参数：产品名称 */
  name?: string
}

export interface GetProductsDetailRequestData {
  /** 详情id */
  id: string
}

export interface GetProductsData {
  id: string
  name: string
  remark: string
  productsChildren: any[]
}

export interface GetProductsChildrenData {
  id: string
  category_id: string
  build_type_id: string
  name: string
  desc: string
  tag: any
  img_list: any
  introduction: string
  usage: string
  params: any
  name_en?: string
  desc_en?: string
  tag_en?: string
  introduction_en?: string
  usage_en?: any
  params_en?: any
}

export type GetProductsResponeseDetailData = ApiResponseData<GetProductsData>
export type GetProductsChildrenResponeseDetailData = ApiResponseData<GetProductsChildrenData>

export type GetProductsChildrenResponeseData = ApiResponseData<{
  list: GetProductsChildrenData[]
  total: number
  page: number
}>

export type GetProductsResponseData = ApiResponseData<{
  list: GetProductsData[]
  total: number
  page: number
}>
